<template>
	<view class="page">
		<uni-list>
			<uni-list-item v-for="(item, index) in list" :key="index" :title="item.title" link="navigateTo" :to="'/pages/detail/detail?aid=' + item.id" />
		</uni-list>
	</view>
</template>

<script>
export default {
	data() {
		return {
			list: [
				{ id: '1', title: '北交所开通条件和交易规则' },
				{ id: '2', title: '配置规则' },
				{ id: '3', title: '安全保障' },
				{ id: '4', title: '相关费用' }
			]
		};
	},
	onShow() {
		// 设置导航栏颜色
		uni.setNavigationBarColor({
			frontColor: '#ffffff',
			backgroundColor: this.$store.state.presentColor
		});
	},
	methods: {
		detail(aid) {
			console.log('xxx');
			uni.navigateTo({ url: 'pages/detail/detail?aid=' + aid });
		}
	}
};
</script>

<style>
body {
	font-size: 0.8rem !important;
}
</style>
